package book;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 05 - 10
 * Time: 19:45
 */
public class BookList {
    private Book[] bookList = new Book[10];
    private int booknumbers;
    public Book getBook(int pos) {
        return bookList[pos];
    }
    public void setBook(int pos, Book book) {
        bookList[pos] = book;
    }
    public int getBooknumbers() {
        return booknumbers;
    }
    public void setBooknumbers(int booknumbers) {
        this.booknumbers = booknumbers;
    }
    public BookList(){
        this.bookList[0] = new Book("西游记", "吴承恩", 100, "小说");
        this.bookList[1] = new Book("红楼梦", "曹雪芹", 100, "小说");
        this.bookList[2] = new Book("爆笑校园", "朱斌", 20, "漫画");
        this.booknumbers = 3;
    }
}
